import request from '@/utils/request'
// import store from '@/store'


//获取用户自己信息的接口
export const userInfo = () => request({
    method: 'GET',
    url: '/v1_0/user',
    // headers: {
    //     Authorization: `Bearer ${store.state.user.token}`
    // }

})




//获取用户个人资料的接口
export const grtUserProfile = () => request({
    method: 'GET',
    url: '/v1_0/user/profile',
})


//编辑用户个人资料的接口
export const updateUserProfile = data => request({
    method: 'PATCH',
    url: '/v1_0/user/profile',
    data
})


//编辑用户照片资料（头像、身份证照片的接口
export const updateUserPhoto = data => request({
    method: 'PATCH',
    url: '/v1_0/user/photo',
    data
})